const requireComponent = require.context('./', true, /index\.vue$/);

let object = {};
requireComponent.keys().forEach(item => {
  const component = requireComponent(item);
  object[component.default.name] = component.default;
});

export default object;
